package v1

import "gf_shop/internal/model/entity"
import "github.com/gogf/gf/v2/frame/g"

type GoodsInfoReq struct {
	g.Meta `paht:"goods/info" method:"get" tag:"GoodsService" summary:"get the info of current goods"`
	Id     int `v:"required"`
}

type GoodsInfoRes struct {
	*entity.Goods
}

type GoodsAddReq struct {
	g.Meta      `path:"goods/add" method:"post" tags:"GoodsService" summary:"添加商品"`
	Name        string `v:"required|length:1,20"`
	Description string `v:"required|length:1,50"`
}

type GoodsAddRes struct{}
